// 一个伪代码

const store = {
  state: {},

  mutations: {},

  actions: {
    abc(context, payload) {},
  },

  commit(name, payload) {
    this.mutations[name](this.state, payload);
  },

  dispatch(name, payload) {
    this.actions[name](
      {
        state: this.state,
        // ...
      },
      payload
    );
  },
};

store.commit("突变的名字", {});
store.dispatch("abc", {});
